<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html> <!--<![endif]-->
<head>
	<#include "/pages/templet/head.html"/>
	<script src="/assets/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
	<script src="/assets/js/charts/highcharts.js"></script>
	<SCRIPT type="text/javascript">
		var ztree ;
		var setting = {
			data: {
				simpleData: {
					enable: true
				}
			},
			callback: {
				onExpand: function(){
					if (treeNiceScroll) {
						treeNiceScroll.resize();
					}
				}
			},
			view: {
				showLine: false
			}
		};
		var zNodes1 =[
			{ id:"0", pId:"0", name:"个人文件夹", open:true , url:"" ,icon:"/assets/images/icon-file-closed.png", target:"_self"}
			<#if dicList??>
			<#list dicList as dic>
			,{ id:"${dic.id!''}", pId:"${dic.parentid!''}", name:"${dic.name!''}", icon:"/assets/images/icon-file-closed.png" , url:"/${orgi}/manage/account/userreportlist/${dic.id!''}.html?userid=${userid!''}" , target:"_self"}
			</#list>
			</#if>
		];
		$(document).ready(function(){
			var ztree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), setting, zNodes1);
			ztree.selectNode(ztree.getNodeByParam("id", "${parentid!''}", null));
		});
	</SCRIPT>
</head>
<body>
<div class="container rs_layout" wrapper="true"><!-- Everything started here -->
	<div class="rs_layout_top" style="height:65px;">
		<div class="nav_top"><!--NavTop-->
			<#include "/pages/templet/headmenu.html"/>
		</div>
		<ul class="nav_tapWrap">
			<li class="nav_tapIthems <#if subtype?? && subtype == 'task'>cur</#if>"><a href="/${orgi}/manage/task/taskpassing.html"><i class="tabIcon"></i>状态</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'service'>cur</#if>"><a href="/${orgi}/manage/serviceplan/systemstatus.html"><i class="tabIcon"></i>服务规划</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'system'>cur</#if>"><a href="/${orgi}/manage/system/index.html"><i class="tabIcon"></i>系统设置</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'role'>cur</#if>"><a href="/${orgi}/manage/role/index.html"><i class="tabIcon"></i>权限系统</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'account'>cur</#if>"><a href="/${orgi}/manage/account/index.html"><i class="tabIcon"></i>用户管理</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'log'>cur</#if>"><a href="/${orgi}/manage/log/logmonitor.html"><i class="tabIcon"></i>日志服务</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'reports'>cur</#if>"><a href="/${orgi}/manage/reports/report/index.html?code=cur"><i class="tabIcon"></i>报表设置</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'files'>cur</#if>"><a href="/${orgi}/manage/file/index.html"><i class="tabIcon"></i>文件管理</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'calendar'>cur</#if>"><a href="/${orgi}/manage/calendar/index.html"><i class="tabIcon"></i>日历管理</a></li>
			<!--  
			<li class="nav_tapIthems <#if subtype?? && subtype == 'cluster'>cur</#if>"><a href=""><i class="tabIcon"></i>集群管理</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'monitor'>cur</#if>"><a href=""><i class="tabIcon"></i>系统监测</a></li>
			<li class="nav_tapIthems <#if subtype?? && subtype == 'log'>cur</#if>"><a href="/${orgi}/manage/log/index.html"><i class="tabIcon"></i>日志服务</a></li>
			-->
		</ul>
	</div>
	<div class="rs_layout_top breadCrumbWrap">
		<div class="breadCrumbStart">您当前的位置是在：</div>
		<ul class="breadCrumb">
			<li class="bc_ithems"><a href="/${orgi}/manage/index.html">系统管理</a></li>
			<li class="bc_ithems"><a href="/${orgi}/manage/role/index.html">用户管理</a></li>
			<li class="bc_ithems"><a href="#"><#if user ?? && user.name ??>${user.name}</#if></a></li>
		</ul>
	</div>
	<div class="rs_layout_left" resizable="true" style="width:230px;">
		<div class="lftTreeWrap">
			<div class="ztree" id="zTree_adminLIst"></div>
		</div>
	</div>
	<div class="rs_layout_center">
		<div class="rs_layout">
			<div class="rs_layout_center">
				<div class="tableScrollWrap">
					 <table class="table_style_1">
						<thead>
							<tr>
								<th style="width:30px;"></th>
								<th><i class="verMidWrap">名称</i><i class="tbArrow"></i></th>
								<th class="minSize"><i class="verMidWrap">创建时间</i><i class="tbArrow"></i></th>
								<th class="minSize minIsHide"><i class="verMidWrap">修改时间</i><i class="tbArrow"></i></th>
								<th class="minSize">操作</th>
							</tr>
						</thead>
						<tbody>
							<#if reportList??>
							<#list reportList as report>
							<tr>
								<td class="tdIcons"><input reportType="${report.reporttype!''}" type="checkbox" name="reportids" value="${report.id!''}"></td>
								<td>	
									<#assign title = ""/>
									<#if report.reporttype?? && report.reporttype == 'plan'>
										<#assign title = "计划任务"/>
									<#else>
										<#if report.status == 'available'>
											<#assign title = report.name!''/>
										<#else>
											<#assign title = "报表未发布，当前状态不可用"/>
										</#if>
									</#if>
									<#if report.reporttype?? && report.reporttype == 'plan'>
										<i class="icons_tablelist icons_tablelist_plan" title="${title!''}"></i>${report.name!''}
									<#elseif report.reporttype?? && report.reporttype == 'dicshortcuts'>
										<a	target="userreport"	 
											title="${report.name!''}目录的快捷方式"
											href="<#if report.status == 'unavailable'>/${orgi}/user/report/view/${report.id!''}.html<#else>/${orgi}/user/report/view/${report.id!''}.html</#if>">
											<i class="icons_tablelist icons_tablelist_shortcuts"></i>${report.name!''}
										</a>
									<#elseif report.reporttype?? && report.reporttype == 'reportshortcuts'>
										<a	target="userreport"	 
											title="${report.name!''}的快捷方式"
											href="<#if report.status == 'unavailable'>/${orgi}/user/report/view/${report.id!''}.html<#else>/${orgi}/user/report/view/${report.id!''}.html</#if>">
											<i class="icons_tablelist icons_tablelist_reportshortcuts"></i>${report.name!''}
										</a> 
									<#else>
										<a	target="userreport"	 
										title="${report.name!''}"
										href="<#if report.status == 'unavailable'>/${orgi}/user/report/view/${report.id!''}.html<#else>/${orgi}/user/report/view/${report.id!''}.html</#if>">
										<i class="icons_tablelist <#if report.status == 'available'>icons_tablelist_available<#else>icons_tablelist_unavailable</#if>">
										</i>${report.name!''}</a>
									</#if>
								</td>
								<td class="minSize">${report.createtime?string('yyyy-MM-dd HH:mm:ss')}</td>
								<td class="minSize">${report.updatetime?string('yyyy-MM-dd HH:mm:ss')}</td>
								<td class="minSize">
									<!----  以下处理 设置 计划任务 的 操作 ------>
									<a onclick="art.confirm('您确定要删除此报表吗？' , function(){location.href='/${orgi}/manage/account/${parentid!''}/${report.id!''}/${userid!''}/reportdelo.html'} , function(){})" href="javascript:void(0)" title="删除 “${report.name!''}”"><i class="tbControlIcon cbtn-icon-48"></i></a>
								</td>
							</tr> 
							</#list>
							</#if>
						</tbody>
					</table>
				</div>
			</div>
			<div class="rs_layout_bottom toolBar_bottom">
				<ul class="toolbarBottom_IconWrap">
					<li class="tb-icons-1"></li>
					<li class="tb-icons-2"></li>
					<li class="tb-icons-3"></li>
					<li class="tb-icons-4"></li>
				</ul>
			</div>
		</div>
	</div>
</div>
</body>
</html>